package cn.sail.spring.aop.service.impl;

import cn.sail.spring.aop.service.UserService;
import org.springframework.stereotype.Service;

@Service
 public class UserServiceImpl implements UserService {
    @Override
    public void login() {
        System.out.println("执行登录");
    }

    @Override
    public void logout() {
        int i = 1/0;
        System.out.println("执行登出");
    }

    @Override
    public void add(int authority) {
        System.out.println("-----------");
        System.out.println("添加用户成功");
        System.out.println("-----------");
    }

    @Override
    public void find(int authority) {
        System.out.println("-----------");
        System.out.println("查找用户成功");
        System.out.println("-----------");
    }
}
